package com.michaelli.androidmoneyrecord.ui;

import com.michaelli.androidmoneyrecord.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class WelcomeActivity extends Activity {
	private static final long WELCOME_DISPLAY_TIME = 1000;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_welcome);
		showWelcomPage();
	}

	private void showWelcomPage() {
		new Handler().postDelayed(new Runnable() {
			public void run() {
				startActivity(new Intent(getApplicationContext(), LoginActivity.class));
				finish();
			}
		}, WELCOME_DISPLAY_TIME);

	}

}
